/**
 * 
 */
package core.service.impl;

import java.io.IOException;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;

import core.service.ICoreService;
import core.service.net.HttpUtils;

/**
 * @author Eric
 */
@Service
public class CoreService implements ICoreService {

	@Autowired
	HttpUtils http;
	
	@Override
	public String top250() {
		String top250resp = "";
		try {
			top250resp = http.request("https://api.douban.com/v2/movie/top250", "");
			
		} catch (IOException e) {
			e.printStackTrace();
		}
		return top250resp;
	}

}
